package cn.jetpiece.cloud.joss.api.basic.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 创建对象存储配置记录
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
@Data
@ApiModel
public class CreateConfigParam implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 配置键
     */
    @NotBlank(message = "配置键不能为空")
    @ApiModelProperty(value = "配置键", required = true)
    private String configKey;

    /**
     * 配置名称
     */
    @NotBlank(message = "配置名称不能为空")
    @ApiModelProperty(value = "配置名称", required = true)
    private String configName;

    /**
     * 配置值
     */
    @NotBlank(message = "配置值不能为空")
    @ApiModelProperty(value = "配置值", required = true)
    private String configValue;

    /**
     * 启用(1:是,0:否)
     */
    @ApiModelProperty(value = "启用(1:是,0:否)")
    private Integer isEnable;
}
